
/**
 * @brief    Defines equation responses that are used in the design, either as
 * constraints or as an objective.
 *
 * @version  0.1
 * @author   wuxingchuang
 * @date     2025.04.11
 *          _
 *      ___| |__   ___ _ __   __ _  ___  _ __   __ _
 *     / __| '_ \ / _ \ '_ \ / _` |/ _ \| '_ \ / _` |
 *     \__ \ | | |  __/ | | | (_| | (_) | | | | (_| |
 *     |___/_| |_|\___|_| |_|\__, |\___/|_| |_|\__, |
 *                           |___/             |___/
 * @copyright (c) 2024 by 神工仿真, All Rights Reserved.
 */
#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Input/Design/DesignBase.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN

struct DRESP2Data : public DesignBase {
  struct DESVARData {
    SG::DataStructure::Common::Id m_DVID = 0;  ///<
  };
  struct DNODEData {
    SG::DataStructure::Common::Id m_GRID = 0;   ///<
    SG::DataStructure::Common::I64 m_COMP = 0;  ///<
  };
  struct DRESP1Data {
    SG::DataStructure::Common::Id m_R1ID = 0;  ///<
  };
  struct DRESP2SubData {
    SG::DataStructure::Common::Id m_R2ID = 0;  ///<
  };
  struct DTABLEData {
    char m_LABEL[8] = {0};  ///<
  };
  struct DVCREL1Data {
    SG::DataStructure::Common::Id m_DC1ID = 0;  ///<
  };
  struct DVCREL2Data {
    SG::DataStructure::Common::Id m_DC2ID = 0;  ///<
  };
  struct DVMREL1Data {
    SG::DataStructure::Common::Id m_DM1ID = 0;  ///<
  };
  struct DVMREL2Data {
    SG::DataStructure::Common::Id m_DM2ID = 0;  ///<
  };
  struct DVPREL1Data {
    SG::DataStructure::Common::Id m_DP1ID = 0;  ///<
  };
  struct DVPREL2Data {
    SG::DataStructure::Common::Id m_DP2ID = 0;  ///<
  };

  char m_LABEL[8] = {0};                         ///<
  SG::DataStructure::Common::Id m_EQID = 0;      ///<
  SG::DataStructure::Common::I64 m_REGION = 0;   ///<
  SG::DataStructure::Common::I64 m_METHOD = 0;   ///<
  SG::DataStructure::Common::Real m_C1 = 0.0;    ///<
  SG::DataStructure::Common::Real m_C2 = 0.0;    ///<
  SG::DataStructure::Common::Real m_C3 = 0.0;    ///<
  SG::DataStructure::Common::Id m_domainId = 0;  ///<

  std::vector<DESVARData> m_DESVARList;
  std::vector<DNODEData> m_DNODEList;
  std::vector<DRESP1Data> m_DRESP1List;
  std::vector<DRESP2SubData> m_DRESP2List;
  std::vector<DTABLEData> m_DTABLEList;
  std::vector<DVCREL1Data> m_DVCREL1List;
  std::vector<DVCREL2Data> m_DVCREL2List;
  std::vector<DVMREL1Data> m_DVMREL1List;
  std::vector<DVMREL2Data> m_DVMREL2List;
  std::vector<DVPREL1Data> m_DVPREL1List;
  std::vector<DVPREL2Data> m_DVPREL2List;
};

///@{ @brief operator override
DECLSPEC bool operator==(const DRESP2Data::DESVARData& val1,
                         const DRESP2Data::DESVARData& val2);
DECLSPEC bool operator==(const DRESP2Data::DNODEData& val1,
                         const DRESP2Data::DNODEData& val2);
DECLSPEC bool operator==(const DRESP2Data::DRESP1Data& val1,
                         const DRESP2Data::DRESP1Data& val2);
DECLSPEC bool operator==(const DRESP2Data::DRESP2SubData& val1,
                         const DRESP2Data::DRESP2SubData& val2);
DECLSPEC bool operator==(const DRESP2Data::DTABLEData& val1,
                         const DRESP2Data::DTABLEData& val2);
DECLSPEC bool operator==(const DRESP2Data::DVCREL1Data& val1,
                         const DRESP2Data::DVCREL1Data& val2);
DECLSPEC bool operator==(const DRESP2Data::DVCREL2Data& val1,
                         const DRESP2Data::DVCREL2Data& val2);
DECLSPEC bool operator==(const DRESP2Data::DVMREL1Data& val1,
                         const DRESP2Data::DVMREL1Data& val2);
DECLSPEC bool operator==(const DRESP2Data::DVMREL2Data& val1,
                         const DRESP2Data::DVMREL2Data& val2);
DECLSPEC bool operator==(const DRESP2Data::DVPREL1Data& val1,
                         const DRESP2Data::DVPREL1Data& val2);
DECLSPEC bool operator==(const DRESP2Data::DVPREL2Data& val1,
                         const DRESP2Data::DVPREL2Data& val2);

DECLSPEC bool operator==(const DRESP2Data& val1, const DRESP2Data& val2);
///}@
SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE
